package com.qidian.permission.mapper;

import com.qidian.permission.entity.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper {

    List<Role> selectByPage(@Param("role") Role role, @Param("start") Integer start, @Param("limit") Integer limit);

    Integer selectCount(Role role);

    int addRole( Role role);

    Role selectByName(String roleName);

    Role selectByRoleId(Long roleId);

    Integer update(Role role);

    Integer deleteUpdateStatus(Long roleId);

    Integer deleteUpdateSelect(Long[] roleIds);




}
